/* ==== ESTILO GENERAL DE LA PÁGINA ==== */
body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  background-color: #f0f0f0;
  padding-top: 80px; /* espacio para el header fijo */
  color: #333;
}

/* ==== ENCABEZADO (HEADER) ==== */
header {
  background: linear-gradient(90deg, #00bcd4, #0097a7);
  display: flex;
  align-items: center;
  padding: 15px 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  position: fixed; /* Fijo en la parte superior */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

/* ==== LOGOTIPO ==== */
.logo {
  display: flex;
  align-items: center;
  margin-right: 30px;
}

.logo img {
  width: 60px;
  height: auto;
}

/* === NAVEGACIÓN PRINCIPAL === */
nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

nav a {
  color: white;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 5px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.3s, color 0.3s;
  margin: 0 10px;
}

nav a i {
  margin-right: 5px;
}

nav a:hover {
  background-color: white;
  color: black;
  text-decoration: underline;
}

/* === CONTENIDO PRINCIPAL === */
.contenido {
  text-align: center;
  padding: 100px 20px 40px; /* para evitar que el header tape el contenido */
  max-width: 900px;
  margin: 0 auto;
}

.contenido h1 {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #003366;
}

.contenido h2 {
  font-size: 1.3em;
  margin-bottom: 40px;
  font-weight: 400;
  color: #555;
  line-height: 1.6;
}

/* Foto del equipo */
.foto-equipo {
  max-width: 400px;
  margin: 0 auto 40px auto;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.foto-equipo img {
  width: 100%;
  display: block;
  border-radius: 15px;
}

/* === CAJAS DE SECCIÓN === */
.seccion-box {
  background-color: white;
  border: 2px solid #003366;
  border-radius: 15px;
  padding: 25px 30px;
  margin: 20px auto;
  width: 90%;
  max-width: 700px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: left;
  transition: box-shadow 0.3s ease;
}

.seccion-box:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Títulos de las cajas con iconos */
.seccion-box h2 {
  color: #003366;
  font-size: 1.8em;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.icono {
  color: #0097a7;
  margin-right: 12px;
  transition: color 0.3s ease;
}

.seccion-box h2:hover .icono {
  color: #00bcd4;
}

/* Párrafos y listas */
.seccion-box p,
.seccion-box ul {
  font-size: 1.1em;
  color: #333;
}

.seccion-box ul {
  list-style-type: none;
  padding-left: 0;
}

.seccion-box li {
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
}

.seccion-box li::before {
  content: "✔";
  color: #00bcd4;
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1.2em;
  line-height: 1;
}

/* === FOOTER === */
footer {
  background-color: #003366;
  color: white;
  text-align: center;
  padding: 15px 10px;
  font-size: 0.9em;
  margin-top: 60px;
}

footer a {
  color: #00bcd4;
  text-decoration: none;
  margin: 0 8px;
}

footer a:hover {
  text-decoration: underline;
}

/* === BOTÓN FLOTANTE WHATSAPP === */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  width: 55px;
  height: 55px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 28px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  z-index: 1100;
  transition: background-color 0.3s;
}

.whatsapp-float:hover {
  background-color: #128c4a;
}

/* === RESPONSIVE === */
@media (max-width: 600px) {
  .seccion-box {
    padding: 20px;
    width: 95%;
  }

  nav {
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 10px;
  }

  nav a {
    display: block;
    margin: 8px 0;
  }

  .contenido h1 {
    font-size: 2em;
  }

  .contenido h2 {
    font-size: 1.1em;
  }

  .foto-equipo {
    max-width: 90%;
  }
}
